<?php
$this->title = "My Contact";
$this->headTitle = ($this->title);
?>
<P>
	<a href="<?php echo $this->url(array('controller' => 'Contact', 
		'action' => 'add'));?>">Add new contact</a>
</P>
<table>
	<tr>
		<th>Email</th>
		<th>Confirmed</th>
		<th>State</th>
		<th>List</th>
		<th>&nbsp;</th>
	</tr>
	<?php foreach ($this->contacts as $contact) : ?>
	<tr>
		<td><?php echo $this->escape($contact->email);?></td>
		<td><?php echo $this->escape($contact->confirmed);?></td>
		<td><?php echo $this->escape($contact->state);?></td>
		<td><?php echo $this->escape($contact->list_id);?></td>
		<td>
			<a href = "<?php echo $this->url(array('controller' => 'Contact',
					'action' => 'edit', 'id' => $contact->id ));?>">Edit</a>
			<a href = "<?php echo $this->url(array('controller' => 'Contact',
					'action' => 'delete', 'id' => $contact->id ));?>">Delete</a>
		</td>

	</tr>
	<?php endforeach;?>
</table>
